import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import './static/baseConfig';
import 'amfe-flexible/index.js';
import vueFeedback from 'vue-feedback';
import SystemBack from '../src/static/utils/system-back.util';
import JsEncrypt from "jsencrypt";
Vue.prototype.$jsEncrypt = JsEncrypt;
import contactsDB from "@/static/dbops/contactsDB.js"

Vue.prototype.$contactsDB = contactsDB;
Vue.use(vueFeedback);
Vue.config.productionTip = false;

import {
  Loading,
  Badge,
  Button,
  Cell,
  CellGroup,
  Calendar,
  Popup,
  Field,
  Picker,
  Checkbox,
  CheckboxGroup,
  Icon,
  ActionSheet,
  Form,
  List,
  Dialog,
  Col,
  Row,
  NavBar,
  Tabbar,
  TabbarItem,
  Skeleton,
  Overlay,
  Sticky,
  Popover,
  Search,
  IndexBar,
  IndexAnchor,
  Image as VanImage,
  Divider,
  Tag,
  Tab,
  Tabs,
  NumberKeyboard,
  Lazyload,
  Toast,
  Grid,
  GridItem
} from "vant";
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Lazyload);
Vue.use(Loading);
Vue.use(Toast);
Vue.use(Tag);
Vue.use(Badge);
Vue.use(Divider);
Vue.use(VanImage);
Vue.use(IndexBar);
Vue.use(IndexAnchor);
Vue.use(Search);
Vue.use(Popover);
Vue.use(Sticky);
Vue.use(Overlay);
Vue.use(Skeleton);
Vue.use(TabbarItem);
Vue.use(Tabbar);
Vue.use(NavBar);
Vue.use(Col);
Vue.use(Row);
Vue.use(Button);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Calendar);
Vue.use(Popup);
Vue.use(Field);
Vue.use(Picker);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Icon);
Vue.use(ActionSheet);
Vue.use(Form);
Vue.use(List);
Vue.use(Dialog);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(NumberKeyboard);
new Vue({
  router,
  store,
  SystemBack,
  render: h => h(App)
}).$mount("#app");
